package com.groupbuying.provider.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Service
@FeignClient(name = "bus-admin")
public interface AdminFeign {

    @RequestMapping(value = "/agent/queryAgent", method = RequestMethod.GET)
    public String queryAgent(@RequestParam Map<String, Object> params);
    @RequestMapping(value = "/agent/getAllAgent", method = RequestMethod.GET)
    public List<Map<String,Object>> getAllAgent(@RequestParam("agentList") List<String> agentList);
    @GetMapping(value = "/agent/queryAgentByArea")
    public String queryAgentByArea(@RequestParam Map<String, Object> params);
}
